Перейти к основному содержимому

Download Audio Track

This mod downloads audio from a YouTube / SoundCloud link.

Requirements

RequirementsWhere It Should Be Placed In Project Folder
yt-dlpSame folder as bot.js
All ffmpeg related stuff, mainly the binary.Same folder as bot.js

Documentation

Inputs

ComponentDocumentation
Audio Source LinkLink to the audio source.
Can be YouTube or SoundCloud, Spotify is not supported.
Audio FormatAudio format to download in.
Recommended is mp3 for its file size.
Storage PathWhere to store the downloaded audio file in the project folder, seperated by :.
i.e. If I want it stored in ./Music/Folder, input Music:Folder.

Outputs

ComponentDocumentation
Final File NameStore the file name of the audio file as, pretty self explainatory.
Final File PathPath to the file, it'll be formatted as path/to/audioFile.format.
Final FileReads the file and saves the Buffer to a variable.
Allows it to be played directly using the Play Binary Variable action developed for this mod.

Options

ComponentDocumentation
Delete File AfterIf toggled to Yes, it'll delete the file immediately after.
When used in tandem with the Final File output, it will not store the file on the system.

Advanced Options

ComponentDocumentation
CookiesToggle on to use cookies from the browser, I myself am not sure how to properly format this line to make it pass off properly.
Custom File NameToggle on to allow for custom file names.
Documentation
Other ArgumentsThis passes off additional arguments to the command-line, can be used to enable other things.
Documentation